from django.urls import re_path,path
from rest_framework_jwt.views import obtain_jwt_token

from . import views

urlpatterns = [

    re_path(r'^users/$',views.RegisterView.as_view()),
    re_path(r'^authorizations/$',obtain_jwt_token),
    # re_path(r'^authorizations/$',views.LoginView.as_view()),

    re_path(r'^user/$', views.UserDetailView.as_view({'get': 'list', 'put': 'update'})),
    re_path(r'^user/password/$', views.PassWordView.as_view()),
    re_path(r'^users/like/(?P<pk>\d+)/$', views.UserLikeView.as_view()),


]